package chamster.maeander;

import java.util.List;

import chamster.MaeanderHamster;
import chamster.statemachine.HamsterState;

public class TurnLeft extends ShiftState {

	public TurnLeft(HamsterState<MaeanderHamster> stateToShiftTo) {
		super(stateToShiftTo);
	}

	public List<HamsterState<MaeanderHamster>> applyState(
			List<HamsterState<MaeanderHamster>> states, MaeanderHamster hamster)
			throws Exception {
		hamster.turnLeft();
		states.add(super.getStateToShiftTo());
		return states;
	}

	public boolean isApplicable(MaeanderHamster hamster) {
		return true;
	}

}
